package com.heima.homeservicemanagementsystem.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.homeservicemanagementsystem.entity.SysRole;
import com.heima.homeservicemanagementsystem.entity.SysUser;
import com.heima.homeservicemanagementsystem.entity.dto.Option;
import com.heima.homeservicemanagementsystem.entity.dto.RegisterDto;
import com.heima.homeservicemanagementsystem.entity.dto.UpdataPwdDto;
import com.heima.homeservicemanagementsystem.module.Result;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * 用户表(SysUser)表服务接口
 *
 * @author makejava
 * @since 2025-02-26 22:55:17
 */
@Service
public interface SysUserService extends IService<SysUser> {
    List<Option> getRoles(String id);

    void insertRoles(String id, List<Object> rolesIds);

    void deleteRoles(String id);

    List<String> listRoleByUserId(String userId);

    List<String> listPermssionByRoleCode(String roleCode);

    List<JSONObject> listmenu();

    Result register(RegisterDto registerDto);


    Result updataPwd(UpdataPwdDto updataPwdDto);

    List<JSONObject> getuserRoles();


}

